package cn.iocoder.yudao.module.im.controller.app.message.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 用户APP - 发送消息响应 VO
 *
 * @author 芋道源码
 */
@Schema(description = "用户APP - 发送消息响应")
@Data
public class AppMessageSendRespVO {

    @Schema(description = "消息ID", example = "12345")
    private Long msgId;

    @Schema(description = "消息唯一标识", example = "msg_12345")
    private String id;

    @Schema(description = "发送者用户ID", example = "123")
    private Long fromUserId;

    @Schema(description = "接收者用户ID", example = "456")
    private Long toUserId;

    @Schema(description = "消息类型", example = "text")
    private String type;

    @Schema(description = "消息内容", example = "Hello World")
    private String content;

    @Schema(description = "是否群聊", example = "0")
    private Integer isGroup;

    @Schema(description = "发送状态", example = "succeed")
    private String status;

    @Schema(description = "@用户列表")
    private List<Long> at;

    @Schema(description = "是否已读", example = "0")
    private Integer isRead;

    @Schema(description = "发送时间", example = "2024-01-01 12:00:00")
    private LocalDateTime sendTime;

    @Schema(description = "创建时间", example = "2024-01-01 12:00:00")
    private LocalDateTime createTime;

}